package com.mgblog.service.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mgblog.dao.inter.ArticleSortDaoInter;
import com.mgblog.service.inter.ArticleSortServiceInter;
import com.mgblog.vo.ArticleSort;
/**
 * 
 * @author meigang 2014-11-26 16:09
 * 文章分类的业务实现类
 */
@Transactional
@Service("articleSortService")
public class ArticleSortServiceImp implements ArticleSortServiceInter{
	@Resource
	private ArticleSortDaoInter articleSortDao;
	@Override
	public List<ArticleSort> getAllArticleSorts(String order) {
		// TODO Auto-generated method stub
		return articleSortDao.getAllArticleSorts(order);
	}
	@Override
	public boolean addArticleSort(ArticleSort articleSort) {
		// TODO Auto-generated method stub
		return articleSortDao.addArticleSort(articleSort);
	}
	@Override
	public ArticleSort getArticleSortById(int sortId) {
		// TODO Auto-generated method stub
		return articleSortDao.getArticleSortById(sortId);
	}

}
